package com.guoning.office_system.model;

import lombok.Data;

import java.util.Date;

@Data
public class AccountingRecordWithUserAndRoom extends AccountingRecord {
    private User user;

    private MeetingRoom meetingRoom;

    public AccountingRecordWithUserAndRoom(Long id, String recordCode, Long userId, Long roomId, String remark, Integer recordStatus, Date beginTime, Date endTime, String creator, Date createTime, String modifier, Date modifiedTime, Integer dr) {
        super(id, recordCode, userId, roomId, remark, recordStatus, beginTime, endTime, creator, createTime, modifier, modifiedTime, dr);
    }

    public AccountingRecordWithUserAndRoom(Long id, String recordCode, Long userId, Long roomId, String remark, Integer recordStatus, Date beginTime, Date endTime, String creator, Date createTime, String modifier, Date modifiedTime, Integer dr, User user, MeetingRoom meetingRoom) {
        super(id, recordCode, userId, roomId, remark, recordStatus, beginTime, endTime, creator, createTime, modifier, modifiedTime, dr);
        this.user = user;
        this.meetingRoom = meetingRoom;
    }

    public AccountingRecordWithUserAndRoom(User user, MeetingRoom meetingRoom) {
        this.user = user;
        this.meetingRoom = meetingRoom;
    }
}
